package com.gs.user.controller;

//import com.gs.user.command.UserCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.ribbon.proxy.annotation.Hystrix;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import rx.Observable;

@RestController
public class LoginController {



    @RequestMapping("/admin/ddd")
    public String  test1()
    {
        return "test1";
    }

    @RequestMapping("/admin/addd")
    public String  test2()
    {
        return "test2";
    }


    @RequestMapping("/product/ddd")
    public String  test3()
    {
        return "test3";
    }

    @HystrixCommand()
    @RequestMapping("/product/addd")
    public String  test4()
    {
//        Observable<String> ob = new UserCommand("login").observe();
        return "test3";
    }

}
